package com.xx.redBook.controller;

import com.xx.common.core.controller.BaseController;
import com.xx.common.core.page.TableDataInfo;
import com.xx.redBook.domain.RedBookLikeRecord;
import com.xx.redBook.service.IRedBookLikeRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 分配订单Controller
 *
 * @author ruoyi
 * @date 2024-09-29
 */
@RestController
@RequestMapping("/redBook/likeRecord")
public class RedBookLikeRecordController extends BaseController
{
    @Autowired
    private IRedBookLikeRecordService redBookIkeRecordService;

    /**
     * 查询分配订单列表
     */
    @GetMapping("/list")
    public TableDataInfo list(RedBookLikeRecord redBookikeRecord)
    {
        startPage();
        List<RedBookLikeRecord> list = redBookIkeRecordService.selectRedBookLikeRecordList(redBookikeRecord);
        return getDataTable(list);
    }
}
